Skip to content

image: honor NO_COLOR in push notes#7015

Open
popsiclelmlm wants to merge 1 commit into
docker:masterfrom
popsiclelmlm:fix/push-no-color
Open

image: honor NO_COLOR in push notes#7015
popsiclelmlm wants to merge 1 commit into
docker:masterfrom
popsiclelmlm:fix/push-no-color

Conversation

@popsiclelmlm
Copy link
Copy Markdown

- What I did

Fixed docker image push manifest fallback notes so they respect NO_COLOR. Fixes #6890.

- How I did it

Passed the command's tui.Output into the push aux callback and applied digest colors through out.Color(...) instead of applying ANSI colors directly.

- How to verify it

  • PATH="$(GOTOOLCHAIN=go1.26.3 go env GOROOT)/bin:$PATH" GOPATH="$tmp" GO111MODULE=auto GOTOOLCHAIN=local go test ./cli/command/image -run 'TestRunPushManifestNoteHonorsNoColor|TestNewPushCommandSuccess' -count=1
  • git diff --check

- Human readable description for the release notes

`docker image push` now respects `NO_COLOR` for manifest fallback notes.

Signed-off-by: popsiclelmlm <no_7seven@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Respect NO_COLOR for docker image push

1 participant